package com.woniuxy.controller.form;

import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import java.util.Date;


@Data
public class AddMenberform {
    @NotBlank(message = "不能为空")
    @Pattern(regexp =  "^[0-9]*$",message = "id不能为字母")
    @Max(value = 3,message = "id长度不合符设定")
    private String memberId;
    @NotBlank(message = "会员名不能为空")
    private String memberName;
    @NotBlank(message = "电话不能为空")
    @Pattern(regexp =  "^[0-9]*$",message = "电话不能为字母")
    private String memberPhone;

    /**
     * 余额
     */
    @NotBlank(message = "余额不能为空")
    @Pattern(regexp = "^\\\\d+$",message = "余额不能为字母")
    private String memberYue;

    /**
     * 结冻
     */@NotBlank(message = "冻结金额不能为空")
    @Pattern(regexp = "^\\\\d+$",message = "结冻金额不能为字母")
    private String memberFreeze;


    /**
     * 积分
     */
    @NotBlank(message = "积分不能为空")
    @Pattern(regexp = "^\\\\d+$",message = "解冻金额不能为字母")
    private String memberScore;

    /**
     * 状态
     */
    @NotBlank(message = "状态不能为空")
    private String memberStat;

    /**
     * 银行
     */
    @NotBlank(message = "银行不能为空")
    private String memberBank;

    /**
     * 银行账号
     */
    @NotBlank(message = "银行账号不能为空")
    @Pattern(regexp = "^\\\\d+$",message = "银行账号不能为字母")
    private String memberBankAccount;

    /**
     * 身份证号
     */@NotBlank(message = "身份证号不能为空")
    @Pattern(regexp = "^\\\\d+$",message = "身份证号不能为字母")
    private String memberIdNumber;

    /**
     * 生日
     */
    private Date memberBirthday;

    /**
     * 会员等级
     */
    private String memberLeve1;

    private Date memberAdmissionDate;

    private String channelId;


}
